
import { Route } from "react-router";
import AppList from "../components/list";
import { TaskList } from '../components/task';
import TaskMonitor from '../components/monitor';
import ExcelTemplate from "../components/excel-template";
import PathTemplate from "../components/path-template";
import Home from '../components/Home';
import { WeaLocaleProvider } from 'ecCom';
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'edc');

export default (
    <Route path="edc_v2" onEnter={getLocaleLabel} component={Home}>
        <Route path='app' component={AppList} />
        <Route path='task' component={TaskList} />
        <Route path='taskMonitor' component={TaskMonitor} />
        <Route path='exceltemplate' component={ExcelTemplate} />
        <Route path='pathtemplate' component={PathTemplate} />
    </Route>
);